<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>animating-resume</title>

</head>

<body>
    <!-- 实现打字效果 -->
    <!-- <div id="html"></div>
    <script>
        let code = `
        <p>这是第一行</p>
        <p>这是第二行</p>
        `
        let n = 1;
        setInterval(function () {
            html.innerHTML = code.substring(0, n);
            n++;
        }, 100)
    </script> -->



    <div id="content">

    </div>
    <p>这里是p标签包裹的文字</p>
    <style id=style>
    
    </style>


    <script>
    let code=`
    body {
        background: pink;
    }
    p {
        color:blue;
    }
    `
    let n = 1;
    setInterval(function() {
        content.innerHTML = code.substring(0,n);
        style.innerHTML= code.substring(0,n);
        n++;
    },100)
    
    </script>
</body>

</html>